//
//  OO_OrderCell.m
//  ShopProject
//
//  Created by macbookpro on 2018/9/30.
//  Copyright © 2018年 ShopProject. All rights reserved.
//

#import "OO_OrderCell.h"

@implementation OO_OrderCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(OO_OrderModel *)model
{
    _model  = model;
    self.goodsName.text = model.goodsName;
    self.goodsMoney.text  = [NSString stringWithFormat:@"¥%.2lf",[model.price doubleValue]];
    self.goodsNumber.text = [NSString stringWithFormat:@"X%ld",model.goodsNumber];
    [self.goodsImageView sd_setImageWithURL:[NSURL URLWithString:model.goodsImageUrl] placeholderImage:[UIImage imageNamed:IMAGEPLACEHOLDER]];
    
    
}
@end
